
import { Injectable } from '@angular/core';
import { FormControl } from '@angular/forms';
import { Form, NgFormControl, NgChildForm, NgChildFormArray, NgValidateForm } from '@farris/devkit';
import { DateConverter, MultiLangConverter } from '@farris/kendo-binding';

@Injectable()
@NgValidateForm({
    formGroupName: '会员信息',
    enableValidate: true
})

@Injectable()
export class HyxxsAtqnViewmodelForm extends Form {
    @NgFormControl({
        id: 'code_16c18a8c_1272',
        name: "{{code_16c18a8c_1272}}",
        binding: 'code',
        updateOn: 'blur',
        defaultI18nValue: '编号',
        validRules: [
            {
                type: 'required',
                constraints: [true],
            },
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    code: FormControl;

    @NgFormControl({
        id: 'name_fda60829_r2jg',
        name: "{{name_fda60829_r2jg}}",
        binding: 'name',
        updateOn: 'blur',
        defaultI18nValue: '姓名',
        validRules: [
            {
                type: 'required',
                constraints: [true],
            },
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    name: FormControl;

    @NgFormControl({
        id: 'remark_a5bfae00_ta9s',
        name: "{{remark_a5bfae00_ta9s}}",
        binding: 'remark',
        updateOn: 'blur',
        defaultI18nValue: '备注',
        validRules: [
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    remark: FormControl;

    @NgFormControl({
        id: 'state_c8a1e18c_27rn',
        name: "{{state_c8a1e18c_27rn}}",
        binding: 'state',
        updateOn: 'blur',
        defaultI18nValue: '状态',
        validRules: [
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    state: FormControl;

    @NgFormControl({
        id: 'organization_ab7841d2_0xub',
        name: "{{organization_ab7841d2_0xub}}",
        binding: 'organization',
        updateOn: 'blur',
        defaultI18nValue: '组织',
        validRules: [
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    organization: FormControl;

    @NgFormControl({
        id: 'gender_c9b82b1d_5gi4',
        name: "{{gender_c9b82b1d_5gi4}}",
        binding: 'gender',
        updateOn: 'blur',
        defaultI18nValue: '性别',
        validRules: [
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    gender: FormControl;

    @NgFormControl({
        id: 'countryOrArea_c4f879b9_dl9j',
        name: "{{countryOrArea_c4f879b9_dl9j}}",
        binding: 'countryOrArea',
        updateOn: 'blur',
        defaultI18nValue: '所属国家或地区',
        validRules: [
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    countryOrArea: FormControl;

    @NgFormControl({
        id: 'location_7d2b5e9f_atm1',
        name: "{{location_7d2b5e9f_atm1}}",
        binding: 'location',
        updateOn: 'blur',
        defaultI18nValue: '常驻地',
        validRules: [
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    location: FormControl;

    @NgFormControl({
        id: 'idNumber_30140f27_8zgx',
        name: "{{idNumber_30140f27_8zgx}}",
        binding: 'idNumber',
        updateOn: 'blur',
        defaultI18nValue: '身份证号',
        validRules: [
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    idNumber: FormControl;

    @NgFormControl({
        id: 'levelOfMember_6bb3d632_w38u',
        name: "{{levelOfMember_6bb3d632_w38u}}",
        binding: 'levelOfMember',
        updateOn: 'blur',
        defaultI18nValue: '等级',
        validRules: [
            {
                type: 'required',
                constraints: [true],
            }
        ]
    })
    levelOfMember: FormControl;

    @NgFormControl({
        id: 'levelName_f9f3cb1a_3l0s',
        name: "{{levelName_f9f3cb1a_3l0s}}",
        binding: 'levelName',
        updateOn: 'blur',
        defaultI18nValue: '等级名称',
        validRules: [
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    levelName: FormControl;

    @NgFormControl({
        id: 'privilege_f3753110_jtin',
        name: "{{privilege_f3753110_jtin}}",
        binding: 'privilege',
        updateOn: 'blur',
        defaultI18nValue: '等级特权',
        validRules: [
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    privilege: FormControl;

    @NgFormControl({
        id: 'recommandPeople_78eab758_xt7v',
        name: "{{recommandPeople_78eab758_xt7v}}",
        binding: 'recommandPeople',
        updateOn: 'blur',
        defaultI18nValue: '推荐人',
        validRules: [
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    recommandPeople: FormControl;

    @NgFormControl({
        id: 'phoneNumber_5073e9e4_aksd',
        name: "{{phoneNumber_5073e9e4_aksd}}",
        binding: 'phoneNumber',
        updateOn: 'blur',
        defaultI18nValue: '手机号',
        validRules: [
            {
                type: 'required',
                constraints: [true],
            },
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    phoneNumber: FormControl;

}